package service.serviceimpl;

import domain.Clothesout;
import domain.Order;
import domain.Orderdet;
import mapper.OrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import service.OrderService;
import vo.Ordervo;

import java.util.List;

/**
 * @ClassName : OrderServiceImpl
 * @Description : //描述
 * @Author : LYH
 * @Date: 2022/6/4  20:29
 */
@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;
    @Override
    public List<Order> findOrder_list(Ordervo ordervo) {
        return orderMapper.findOrder_list(ordervo);
    }

    @Override
    public int insertorderin(Order order) {
        return orderMapper.insertorderin(order);
    }

    @Override
    public int insertorderindet(Orderdet orderdet) {
        return orderMapper.insertorderindet(orderdet);
    }

    @Override
    public int selectOrder_id() {
        return orderMapper.selectOrder_id();
    }

    @Override
    public int updateorderin(Order order) {
        return orderMapper.updateorderin(order);
    }

    @Override
    public List<Orderdet> findOrderdet_List(int o_id) {
        return orderMapper.findOrderdet_List(o_id);
    }

    @Override
    public int deleteOrder(Order order) {
        return orderMapper.deleteOrder(order);
    }

    @Override
    public List<Order> findOrderout_list(Ordervo ordervo) {
        return orderMapper.findOrderout_list(ordervo);
    }

    @Override
    public int insertorderout(Order order) {
        return orderMapper.insertorderout(order);
    }

    @Override
    public List<Clothesout> findtotal(Clothesout clothesout) {
        return orderMapper.findtotal(clothesout);
    }

    @Override
    public int insertOrderoutdet(Clothesout clothesout) {
        return orderMapper.insertOrderoutdet(clothesout);
    }

    @Override
    public List<Clothesout> findstock(Clothesout clothesout) {
        return orderMapper.findstock(clothesout);
    }
}
